<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/backend/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>CMS 后台管理工作平台</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<link rel="stylesheet" type="text/css" href="css/style.css"/>
	<script type="text/javascript" src="js/back.js"></script>
	<script type="text/javascript">
		function reloadcheckcode(img){
			img.src = "images/checkcode.jpg?"+Math.random();
		}
	</script>
  </head>
  
  <body>
    <div id="top"></div>
    <form id="login" action="LoginServlet" method="post">
    	<div id="center">
    		<div id="center_left"></div>
    		<div id="center_middle">
    			<c:if test="${ error!=null }">
    				<div> <font color="red">${error}</font></div>
    			</c:if>
    			<div class="user">
    				<label>用户名：<input type="text" name="username" id="user" value="admin"/></label>
    			</div>
    			<div class="user">
       				 <label>密　码：<input type="password" name="password" id="pwd" value="admin"/></label>
      			</div>
      			<div class="chknumber">
      				<label>验证码：<input name="checkcode" type="text" id="chknumber" maxlength="4" class="chknumber_input"/></label>
      				<img src="images/checkcode.jpg" id="safecode" onclick="reloadcheckcode(this)" title="如果看不清，请点击本图片换一张"/>
      			</div>
    		</div>
    		<div id="center_middle_right"></div>
    		<div id="center_submit">
      			<div class="button"> <img src="images/dl.gif" width="57" height="20" onclick="form_submit()" > </div>
      			<div class="button"> <img src="images/cz.gif" width="57" height="20" onclick="form_reset()"> </div>
    		</div>
    		<div id="center_right"></div>
    	</div>
    </form>
    <div id="footer">******科技有限公司</div>
  </body>
</html>
